<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/4/25
  Time: 18:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../inc/comm.jsp" %>
<%@include file="../inc/inc_head.jsp" %>
<style>

</style>
<html>
<head>
    <title></title>
  <link href="${ctx}/resources/style/share.css" rel="stylesheet" type="text/css" />
  <link href="${ctx}/resources/style/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page-content">
<div class="search" ><a href="${ctx}/info" class="btn btn-default" style="float: left;">查看所有文件</a>
  <div class="search-per">
    <div class="input-group" style="float: right;">
      <form action="${ctx}/info" method="post">
      <input type="text" name="name" class="form-control" value="${name}" placeholder="请输入关键字..." style="width:200px;">
                  <span class="input-group-btn" style="float:left;">
                    <button class="btn btn-success" type="submit">搜索</button>
                  </span>
      </form>

    </div><!-- /input-group -->
  </div>
</div>
<div>
  <table class="table table-bordered table-striped table-hover">
    <thead>
    <tr class="gray">
      <th>序号</th>
      <%--<th>文件编号</th>--%>
      <th>文件名称</th>
      <th>发布日期</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody id="tb1">
    <c:forEach items="${list}" var="item" varStatus="index">
      <tr>
        <td>${index.index+1}</td>
        <td><a href="${ctx}${item.url}">${item.name}</a></td>
        <td><fmt:formatDate value="${item.date}" pattern="yyyy-MM-dd  HH:mm"/></td>
        <td><a href="${ctx}/download?url=${item.path}&filename=${item.name}"><span style="color: #009ceb">下载</span></a></td>
      </tr>
    </c:forEach>
    </tbody>
  </table>
</div>
<%--<div class="pages">--%>
  <%--<nav>--%>
    <%--<ul class="pagination">--%>
      <%--<li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>--%>
      <%--<li class="active"><a href="#">1</a></li>--%>
      <%--<li><a href="#">2</a></li>--%>
      <%--<li><a href="#">3</a></li>--%>
      <%--<li><a href="#">4</a></li>--%>
      <%--<li><a href="#">5</a></li>--%>
      <%--<li><a href="#" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>--%>
    <%--</ul>--%>
  <%--</nav>--%>
<%--</div>--%>
  </div>

</body>
<script>
  $(function(){

    window.parent.$('.left').css('display','none');
    window.parent.$('.content').css('padding-left','0px');
    var d1 = $.pager({
      container:"#tb1",
      operateObj:"tr",
      pagesize:10, //页面列表条数
      showPageNum:4
    });
  })
</script>
</html>
